﻿<!DOCTYPE html>
<html>
	<head>
		<title>Insert and format tables</title>
		<meta charset="utf-8" />
		<meta name="description" content="Add a table to your presentation and adjust its properties" />
		<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
		<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
        <script type="text/javascript" src="../callback.js"></script>
        <script type="text/javascript" src="../search/js/page-search.js"></script>
	</head>
	<body>
		<div class="mainpart">
			<div class="search-field">
				<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
			</div>
			<h1>Insert and format tables</h1>
			<h3>Insert a table</h3>
			<p>To insert a table into a slide in the <a target="_blank" href="https://www.onlyoffice.com/presentation-editor.aspx" onclick="onhyperlinkclick(this)"><b>Presentation Editor</b></a>,</p>
			<ol>
				<li>select the slide where a table should be added,</li>
				<li>switch to the <b>Insert</b> tab of the top toolbar,</li>
				<li>click the <div class="icon icon-inserttable"></div> <b>Table</b> icon on the top toolbar,</li>
				<li>
					select one of the following options to create a table:
					<ul>
						<li>
							<p>either a table with a predefined number of cells (10 x 8 cells maximum)</p>
							<p>If you want to quickly add a table, just select the number of rows (8 maximum) and columns (10 maximum).</p>
						</li>
						<li>
							<p>or a custom table</p>
							<p>In case you need more than a 10 x 8 cell table, select the <b>Insert Custom Table</b> option that will open the window where you can enter the necessary number of rows and columns respectively, then click the <b>OK</b> button.</p>
						</li>
					</ul>
				</li>
				<li>
					if you want to insert a table as an OLE object:
					<ol>
						<li>Select the <b>Insert Spreadsheet</b> option in the <b>Table</b> menu on the <b>Insert</b> tab.</li>
						<li>
							The corresponding window appears where you can enter the required data and format it using the Spreadsheet Editor formatting tools such as <a href="../../../../../../spreadsheeteditor/main/resources/help/en/UsageInstructions/FontTypeSizeStyle.htm">choosing font, type and style</a>, <a href="../../../../../../spreadsheeteditor/main/resources/help/en/UsageInstructions/ChangeNumberFormat.htm">setting number format</a>, <a href="../../../../../../spreadsheeteditor/main/resources/help/en/UsageInstructions/InsertFunction.htm">inserting functions</a>, <a href="../../../../../../spreadsheeteditor/main/resources/help/en/UsageInstructions/FormattedTables.htm">formatting tables</a> etc.
							<p><img alt="OLE table" src="../../../../../../common/main/resources/help/en/images/ole_table.png" /></p>
						</li>
						<li>The header contains the <span class="icon icon-visible_area"></span> <b>Visible area</b> button in the top right corner of the window. Choose the <b>Edit Visible Area</b> option to select the area that will be shown when the object is inserted into the presentation; other data is not lost, it is just hidden. Click <b>Done</b> when ready.</li>
						<li>Click the <b>Show Visible Area</b> button to see the selected area that will have a blue border.</li>
						<li>When ready, click the <b>Save & Exit</b> button.</li>
					</ol>
				</li>
				<li>once the table is added, you can change its properties and position.</li>
			</ol>
			<p>You can also add a table into a text placeholder by pressing the <span class="icon icon-placeholder_table"></span> <b>Table</b> icon within it and selecting the necessary number of cells or using the <b>Insert Custom Table</b> option:</p>
			<p><img alt="Add table to placeholder" src="../images/placeholder_object.png" /></p>
			<p>To resize a table, drag the handles <span class="icon icon-resize_square"></span> situated on its edges until the table reaches the necessary size.</p>
			<p><span class="big big-resizetable"></span></p>
			<p>You can also manually change the width of a certain column or the height of a row. Move the mouse cursor over the right border of the column so that the cursor turns into the bidirectional arrow <span class="icon icon-changecolumnwidth"></span> and drag the border to the left or right to set the necessary width. To change the height of a single row manually, move the mouse cursor over the bottom border of the row until the cursor turns into the bidirectional arrow <span class="icon icon-changerowheight"></span> and drag it up or down.</p>
			<p>You can specify the <a href="../UsageInstructions/ManipulateObjects.htm" onclick="onhyperlinkclick(this)">table position</a> on the slide by dragging it vertically or horizontally.</p>
			<p class="note">
				<b>Note</b>: to move around in a table, you can use <a href="../HelpfulHints/KeyboardShortcuts.htm#workwithtables" onclick="onhyperlinkclick(this)">keyboard shortcuts</a>.
			</p>
			<p>It's also possible to add a table to a slide layout. To learn more, please refer to this <a href="../UsageInstructions/SetSlideParameters.htm#addtolayout" onclick="onhyperlinkclick(this)">article</a>.</p>
			<hr />
			<h3>Adjust table settings</h3>
			<img class="floatleft" alt="Table settings tab" src="../images/tablesettingstab.png" />
			<p>Most of the table properties as well as its structure can be altered by using the right sidebar. To activate it, click the table and choose the <b>Table settings</b> <span class="icon icon-table_settings_icon"></span> icon on the right.</p>
			<p>The <b>Rows</b> and <b>Columns</b> sections on the top allow you to emphasize certain rows/columns by applying a specific formatting to them, or highlight different rows/columns with different background colors to clearly distinguish them. The following options are available:</p>
			<ul style="margin-left: 280px;">
				<li><b>Header</b> - emphasizes the topmost row in the table with special formatting.</li>
				<li><b>Total</b> - emphasizes the bottommost row in the table with special formatting.</li>
				<li><b>Banded</b> - enables the background color alternation for odd and even rows.</li>
				<li><b>First</b> - emphasizes the leftmost column in the table with special formatting.</li>
				<li><b>Last</b> - emphasizes the rightmost column in the table with special formatting.</li>
				<li><b>Banded</b> - enables the background color alternation for odd and even columns.</li>
			</ul>
			<p>
				The <b>Select From Template</b> section allows you to choose one of the predefined tables styles. Each template combines certain formatting parameters, such as a background color, border style, row/column banding etc.
				Depending on the options checked in the <b>Rows</b> and/or <b>Columns</b> sections above, the templates set will be displayed differently. For example, if you've checked the <b>Header</b> option in the <b>Rows</b> section and the <b>Banded</b> option in the <b>Columns</b> section, the displayed templates list will include only templates with the header row and banded columns enabled:
			</p>
			<p><span class="big big-templateslist"></span></p>
			<p>The <b>Borders Style</b> section allows you to change the applied formatting that corresponds to the selected template. You can select the entire table or a certain cell range and set all the parameters manually.</p>
			<ul>
				<li>
					<b>Border</b> parameters - set the border width using the <div class="big big-bordersize"></div> list (or choose the <b>No borders</b> option), select its <b>Color</b> in the available palettes and determine the way it will be displayed in the cells when clicking on the icons:
					<p><span class="big big-bordertype"></span></p>
				</li>
				<li><b>Background color</b> - select the color for the background within the selected cells.</li>
			</ul>
			<p>The <b>Rows & Columns</b> <span class="icon icon-rowsandcolumns"></span> section allows you to perform the following operations:</p>
			<ul>
				<li><b>Select</b> a row, column, cell (depending on the cursor position), or the entire table.</li>
				<li><b>Insert</b> a new row above or below the selected one as well as a new column to the left or to the right of the selected one.</li>
				<li><b>Delete</b> a row, column (depending on the cursor position or the selection), or the entire table.</li>
				<li><b>Merge Cells</b> - to merge previously selected cells into a single one.</li>
				<li>
					<b>Split Cell...</b> - to split any previously selected cell into a certain number of rows and columns. This option opens the following window:
					<p><img alt="Split Cells window" src="../images/split_cells.png" /></p>
					<p>Enter the <b>Number of Columns</b> and <b>Number of Rows</b> that the selected cell should be split into and press <b>OK</b>.</p>
				</li>
			</ul>
			<p class="note"><b>Note</b>: the options of the <b>Rows & Columns</b> section are also accessible from the <b>right-click menu</b>.</p>
			<p>The <b>Cell Size</b> section is used to adjust the width and height of the currently selected cell. In this section, you can also <b>Distribute rows</b> so that all the selected cells are of equal height or <b>Distribute columns</b> so that all the selected cells are of equal width. The <b>Distribute rows/columns</b> options are also accessible from the <b>right-click menu</b>.</p>
			<hr />
			<h3>Adjust table advanced settings</h3>
			<p>To change the advanced table settings, click the table with the right mouse button and select the <b>Table Advanced Settings</b> option from the right-click menu or click the <b>Show advanced settings</b> link on the right sidebar. The table properties window will be opened:</p>
			<p><img alt="Table Properties" src="../images/table_properties2.png" /></p>
			<p>The <b>Placement</b> tab allows you to set the following table properties:</p>
			<ul>
				<li><b>Size</b> - use this option to change the table width and/or height. If the <b>Constant proportions</b> <div class="icon icon-constantproportions"></div> button is clicked (in this case it looks like this <div class="icon icon-constantproportionsactivated"></div>), the width and height will be changed together preserving the original image aspect ratio.</li>
				<li><b>Position</b> - set the exact position using the <b>Horizontal</b> and <b>Vertical</b> fields, as well as the <b>From</b> field where you can access such settings as <b>Top Left Corner</b> and <b>Center</b>.</li>
			</ul>
			<p><img alt="Table Properties" src="../images/table_properties.png" /></p>
			<p>The <b>Margins</b> tab allows setting the space between the text within the cells and the cell border:</p>
			<ul>
				<li>enter necessary <b>Cell Margins</b> values manually, or</li>
				<li>check the <b>Use default margins</b> box to apply the predefined values (if necessary, they can also be adjusted).</li>
			</ul>
			<p><img alt="Table Properties" src="../images/table_properties1.png" /></p>
			<p>The <b>Alternative Text</b> tab allows specifying the <b>Title</b> and <b>Description</b> which will be read to people with vision or cognitive impairments to help them better understand the contents of the table.</p>
			<hr />
			<p>To <b>format the entered text</b> within the table cells, you can use <a href="../UsageInstructions/InsertText.htm#formatfont" onclick="onhyperlinkclick(this)">icons on the <b>Home</b> tab of the top toolbar</a>. The <b>right-click menu</b>, which appears when you click the table with the right mouse button, includes two additional options: </p>
			<ul>
				<li><b>Cell vertical alignment</b> - it allows you to set the preferred type of the text vertical alignment within the selected cells: <b>Align Top</b>, <b>Align Center</b>, or <b>Align Bottom</b>.</li>
				<li><b>Hyperlink</b> - it allows you to insert a hyperlink into the selected cell.</li>
			</ul>
		</div>
	</body>
</html>
